package cn.ymkj.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bouncycastle.asn1.cms.PasswordRecipientInfo;

import java.net.Inet4Address;
import java.util.ArrayList;
import java.util.List;

@ApiModel("菜单实体类")
public class Menu {

    @ApiModelProperty("菜单编号")
    private Integer menuId;
    @ApiModelProperty("菜单标题")
    private String menuTitle;
    @ApiModelProperty("菜单路径")
    private String menuUrl;
    @ApiModelProperty("菜单父ID")
    private Integer parentId;
    @ApiModelProperty("子菜单")
    private List<Menu> menus = new ArrayList<>();

    public Menu(Integer menuId, String menuTitle, String menuUrl, Integer parentId, List<Menu> menus) {
        this.menuId = menuId;
        this.menuTitle = menuTitle;
        this.menuUrl = menuUrl;
        this.parentId = parentId;
        this.menus = menus;
    }

    public Menu(Integer menuId, String menuTitle, String menuUrl) {
        this.menuId = menuId;
        this.menuTitle = menuTitle;
        this.menuUrl = menuUrl;
    }

    public Menu() {
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuTitle() {
        return menuTitle;
    }

    public void setMenuTitle(String menuTitle) {
        this.menuTitle = menuTitle;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }
}
